<template>
    <upLevel 
        :memorialId="memorialId" 
        @back-to-list="handleBackToList" 
        @to-path="handleToPath" 
    />
</template>

<script setup lang="ts">
import upLevel from '@/components/memorialManagePages/upLevel.vue'
import { useRouter, useRoute } from 'vue-router'
import { computed } from 'vue'

const router = useRouter()
const route = useRoute()

const memorialId = computed(() => route.query.memorialId as string)

const handleBackToList = () => {
    router.push('/memorialManage/manageList')
}

const handleToPath = (path: string) => {
    router.push(`/memorialManage/${path}`)
}
</script>